package JMU2.ti5;

import java.math.BigInteger;
import java.util.Scanner;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            BigInteger num1= scanner.nextBigInteger();
            BigInteger num2= scanner.nextBigInteger();
           BigInteger sum=num1.add(num2);
           BigInteger product=num1.multiply(num2);
           System.out.println(sum.toString());
           System.out.println(product.toString());

        }
        scanner.close();
    }
}
